package com.property.manage.model.flowingWater;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author lwb
 **/
@TableName("t_arrears_detail")
@Data
@ApiModel("欠费明细")
public class ArrearsDetailEntity {

    public static final Integer STATE_NOT_PAY = 0;

    public static final Integer STATE_PAID = 1;

    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("楼栋编号")
    private Integer buildingId;

    @ApiModelProperty("收费明目")
    private String listOfCharges;

    @ApiModelProperty("应付金额")
    private BigDecimal shouldPay;

    @ApiModelProperty("减免金额")
    private BigDecimal deductionAmount;

    @ApiModelProperty("实际减免金额")
    private BigDecimal realDeductionAmount;

    @ApiModelProperty("实际欠费")
    private BigDecimal ownMoney;

    @ApiModelProperty("开日日期")
    private LocalDate startDate;

    @ApiModelProperty("结束日期")
    private LocalDate endDate;

    //0-未缴费 1-已缴费
    @ApiModelProperty("状态")
    private Integer state;

    @ApiModelProperty("缴费流水号")
    private Integer flowingWaterId;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("说明")
    private String remark;

    /**
     * 缴费时间
     */
    private String chargeTime;
}
